
/**
 * 							TASK RELATIONS BASE DEFINE
 * @brief	task relations base define
 * @author	chy.
 * @note	system mode stack of each thread should be defined ahead of thread structure
 * 			cause, we will use it in asm interrupt process!
 * @comment	we support multi-task and multi-thread!
 */

 /** define the applications code segment virtual start address **/
 #define K_TASK_APP_CODESEG_START           0x40000000      // you'd better do not change this value
 /** define the system mode stack size of thread **/
 #define K_TASK_THREAD_SYSMOD_STACK_SIZE    1024            // in bytes

 /** indicate big endian or little endian, you can open one macro only one **/
 /** =>if you change this macro, you should modify all the asm codes, where using SP also **/
 // #define K_SYS_BIGENDIAN                                 // bigendian
 #define _K_SYS_LITTLEENDIAN_                                 // default little endian


 /** stack size in bytes of default main thread of process */
 // you'd better do not change this value!(if you want to change, must be sure that, this  value must be less than 1MB)
 // because we just allocate one slpt for new process when initialize, so it's max value is 1MB
 #define K_MAINTHREAD_STACK_SIZE            4096            // stack size of main thread in process , in bytes

 /** main thread's usr mode stack address in memory **/
 #define K_MAINTHREAD_STACK_ADDR            0x80000000      // you'd better do not change this value
